package formatter;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormatPattern implements MessagePattern{

	private SimpleDateFormat dateFormat;
	
	public DateFormatPattern(String simpleDateFormat) {
		dateFormat = new SimpleDateFormat(simpleDateFormat);
	}
	
	public String applyPattern() {
		return dateFormat.format(new Date());
	}
	
}
